#pragma once
#include "afxinet.h"

class CMyInternetSession :
	public CInternetSession
{

public:
	    CMyInternetSession(LPCTSTR pstrAgent = NULL,
		DWORD_PTR dwContext = 1,
		DWORD dwAccessType = PRE_CONFIG_INTERNET_ACCESS,
		LPCTSTR pstrProxyName = NULL,
		LPCTSTR pstrProxyBypass = NULL,
		DWORD dwFlags = 0);

	// Overridables
	virtual void OnStatusCallback(DWORD_PTR dwContext, DWORD dwInternetStatus,
		LPVOID lpvStatusInformation, DWORD dwStatusInformationLength);

	// Implementation
	// DECLARE_DYNAMIC(CMyInternetSession)
	~CMyInternetSession(void);
};